package com.zheng.russiaRec.view.components 
{
	import com.zheng.russiaRec.view.components.common.GameBtn;
	import com.zheng.russiaRec.view.components.common.GameSlider;
	import com.zheng.russiaRec.view.components.common.GameSprite;
	
	/**
	 * 
	 * @author Mr.zheng
	 */
	public class UI_GameSetting extends GameSprite
	{
		private var _displayMc:GameSetting;
		private var _okBtn:GameBtn;
		private var _quitBtn:GameBtn;
		
		//关卡选择滑块
		private var _customsPassSlider:GameSlider;
		private var _speedSlider:GameSlider;
		/**
		 * 构造
		 */
		public function UI_GameSetting() 
		{
			_displayMc = new GameSetting();
			_okBtn = new GameBtn(_displayMc.okMc);
			_quitBtn = new GameBtn(_displayMc.quitMc);
			
			_customsPassSlider = new GameSlider(this, 120, 120, "");
			_customsPassSlider.maximum = 10;
			_customsPassSlider.minimum = 1;
			_customsPassSlider.value = 1;
			
			_speedSlider = new GameSlider(this, 120, 160, "");
			_speedSlider.maximum = 10;
			_speedSlider.minimum = 1;
			_speedSlider.value = 1;
			
			addChild(_displayMc);
			addChild(_okBtn);
			addChild(_quitBtn);
			addChild(_customsPassSlider);
			addChild(_speedSlider);
		}
		override public function delThis():void 
		{
			clearContain(this);
			_displayMc = null;
			_okBtn.delThis(); _okBtn = null;
			_quitBtn.delThis(); _quitBtn = null;
			
		}
		public function get okBtn():GameBtn { return _okBtn; }
		public function get quitBtn():GameBtn { return _quitBtn; }
		
	}

}